audio_form object

This method will monitor the form for events.

void monitor()

Parameters:
None.

Return value:
None.

Remarks:
This method must be called at regular intervals, as it performs various checks, mainly keyboard activity, to make the form and the focused control work as expected.

Example:
// Make a simple form with a few buttons.

#include "form.bgt"

audio_form form;

void main()
{
form.create_window("Example Form", true);
int ok=form.create_button("OK");
int cancel=form.create_button("E&xit");
while(true)
{
form.monitor();
wait(5);
if(form.is_pressed(ok))
{
exit();
}
if(form.is_pressed(cancel))
{
exit();
}
if((key_down(KEY_LMENU))&&(key_pressed(KEY_F4)))
{
exit();
}
}
}